<template>
  <div class="wrapper">
    <!-- <button class="button" @click="visible = true">点击显示</button>
    <div class="dialog" v-show="visible">
      <div class="header">
        标题 <i class="zh-icon-close" @click="visible = false">X</i>
      </div>

      <div class="content">
        <slot name="body">42424242</slot>
      </div>
      
      <div class="footer">
        <slot name="footer">33535355</slot>
      </div>
    </div> -->
  </div>
</template>

<script>
export default {
  name: "text",
  data() {
    return {
      visible: true,
    };
  },
};
</script>

<style lang="scss" scoped>
* {
  box-sizing: border-box;
}
.wrapper {
  width: 100%;
  height: 500px;
  background: wheat;
  padding: 50px;

  .button {
    width: 100px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .dialog {
    width: 500px;
    height: 300px;
    background: white;
    border: 1px solid black;
    margin: auto;
    position: relative;
    .header {
      height: 50px;
      padding: 10px;
      font-size: 18px !important;
      border-bottom: 1px solid rgb(122, 122, 122);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .content {
      padding: 20px;
    }
    .footer {
      padding: 10px;
      height: 50px;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      border-top: 1px solid rgb(122, 122, 122);
      position: absolute;
      bottom: 0;
    }
  }
}
</style>